import request from '@/utils/request'

// 查询发布模板配置列表
export function listPublishModelConfig(query) {
  return request({
    url: '/publishModelConfig/publishModelConfig/list',
    method: 'get',
    params: query
  })
}

// 查询发布模板配置详细
export function getPublishModelConfig(id) {
  return request({
    url: '/publishModelConfig/publishModelConfig/' + id,
    method: 'get'
  })
}

// 新增发布模板配置
export function addPublishModelConfig(data) {
  return request({
    url: '/publishModelConfig/publishModelConfig',
    method: 'post',
    data: data
  })
}

// 修改发布模板配置
export function updatePublishModelConfig(data) {
  return request({
    url: '/publishModelConfig/publishModelConfig',
    method: 'put',
    data: data
  })
}

// 删除发布模板配置
export function delPublishModelConfig(id) {
  return request({
    url: '/publishModelConfig/publishModelConfig/' + id,
    method: 'delete'
  })
}
